package com.example.aidocengine;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.example.aidocengine.mapper")
public class AiDocEngineApplication {

    public static void main(String[] args) {
        // 使用SpringApplication的程序化方式来启动
        SpringApplication app = new SpringApplication(AiDocEngineApplication.class);
        // 通过属性禁用SpringFox
        System.setProperty("springfox.documentation.swagger.v2.path", "/api-docs");
        System.setProperty("springfox.documentation.enabled", "false");
        app.run(args);
    }
}